//
//  NSDate+FormateString.h
//  CoolMove
//
//  Created by CA on 15/4/26.
//  Copyright (c) 2015年 CA. All rights reserved.
//

#import <Foundation/Foundation.h>

@interface NSDate (FormateString)

+ (NSDate *)formateYearMonthDayString:(NSString *)string;
+ (NSDate *)formateYearMonthString:(NSString *)string;
+ (NSDate *)formateString:(NSString *)string;
+ (NSDate *)dateWithUnixTimeStamp:(NSTimeInterval)timeInterval;

// 时间戳
- (NSTimeInterval)unixTimeStamp;
- (NSString *)unixTimeStampWithDateStr;

+ (NSString *)formateUnixTimeStampTo24ClockString:(NSTimeInterval)unixTimeStamp;
+ (NSString *)formateUnixTimeStampTo24ClockString:(NSTimeInterval)unixTimeStamp minutes:(NSUInteger)mintues;

+ (NSString *)formateUnixTimeStampTo24ClockNewString:(NSTimeInterval)unixTimeStamp withDateFormatter:(NSDateFormatter *)formatter;

- (NSString *)formateYearMonthDay;
- (NSString *)formateYearAndMonth;




@end
